<?php defined('IN_IA') or exit('Access Denied');?>

<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
<div class='container' style='padding:0 5px 10px;margin:0;width:100%'>

<div class="panel panel-success">
  		<div class="panel-heading">主站信息设置</div>
	</div>
	<form action="" method="post" class="form-horizontal form">
		<div class="panel panel-default">
		
			<div class="panel-body">
		
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">主站标题</label>
				<div class="col-sm-8">
					<input type="text" name="title" class="form-control" value="<?php  echo $info['title'];?>" />
					<span class="help-block"></span>
				</div>
			</div>	
				
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">底部版权</label>
				<div class="col-sm-8">
					<input type="text" name="copyright" class="form-control" value="<?php  echo $info['copyright'];?>" /> 
					<span class="help-block"></span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">事件顺序</label>
				<div class="col-sm-8">
					<input name="eorder" type="radio" value="1" <?php  if($info['eorder']=="1"){?>checked="checked"<?php  }?>/>正序&nbsp;&nbsp;&nbsp;&nbsp;
					<input name="eorder" type="radio" value="0" <?php  if($info['eorder']=="0"){?>checked="checked"<?php  }?>/> 逆序
					<span class="help-block"></span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">主题皮肤</label>
				<div class="col-sm-8">
					<img src="<?php  echo MODULE_URL;?>/icon.jpg">&nbsp;&nbsp;<input name="skin" type="radio" value="1" <?php  if($info['skin']=="1"){?>checked="checked"<?php  }?>/><br><br>
					<img src="<?php  echo MODULE_URL;?>/icon2.png">&nbsp;&nbsp;<input name="skin" type="radio" value="2" <?php  if($info['skin']=="2"){?>checked="checked"<?php  }?>/><br><br>
					<img src="<?php  echo MODULE_URL;?>/icon3.png">&nbsp;&nbsp;<input name="skin" type="radio" value="3" <?php  if($info['skin']=="3"){?>checked="checked"<?php  }?>/>
					<span class="help-block"></span>
				</div>
			</div>
			
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">分享标题</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="share_title" class="form-control span7" placeholder="" name="share_title" value="<?php  echo $info['share_title'];?>">
		        </div>
		        </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">分享图标</label>
		        <div class="col-sm-9 col-xs-12">
		            <?php  echo tpl_form_field_image('share_icon',$info['share_icon']);?>
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">分享描述</label>
		        <div class="col-sm-9 col-xs-12">
			        <textarea style="height: 60px;" name="share_content" class="form-control span7" cols="60"><?php  echo $info['share_content'];?></textarea>
		        </div>
		    </div>

			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
				<div class="col-sm-4">
				<input type="hidden" name="token" value="<?php  echo $_W['token'];?>" />
				<input name="submit" type="submit" value="提交" class="btn btn-primary span3" />
					
				</div>
			</div>
			
			</div>
		</div>
	</form>
			
</div>

<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>
